import 'package:flutter/material.dart';
// TODO 自定义icon文件导入
import "./myIcon.dart";

void main() {
  runApp(
    MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('你好flutter1')),
        body: const MyApp(),
      ),
    ),
  );
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    // TODO ListView 超出滚动
    return ListView(
      children: const [
        // 内置icon
        Icon(Icons.home, color: Colors.red, size: 50),
        SizedBox(height: 20),
        Icon(Icons.settings),
        SizedBox(height: 20),
        Icon(Icons.person),
        SizedBox(height: 20),
        Icon(Icons.logo_dev, color: Colors.red, size: 50),
        SizedBox(height: 300),
        // TODO iconfont 自定义icon  定义 myIcon文件
        Icon(MyIcon.caihua, color: Colors.green, size: 50),
        Icon(MyIcon.baicai),
        SizedBox(height: 20),
        Icon(MyIcon.lianou),
        SizedBox(height: 20),
        Icon(MyIcon.serch),
        SizedBox(height: 20),
        Icon(MyIcon.caozuorizhi),
        SizedBox(height: 20),
        Icon(MyIcon.menu_dlrz),
        SizedBox(height: 20),
        Icon(MyIcon.rizhiguanli),
      ],
    );
  }
}
